package com.lou.springboot.dao;

import com.lou.springboot.entity.BlogLink;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Guaguaerhao on 2020/7/9 22:34
 */
@Mapper
public interface BlogLinkDao {
    List<BlogLink> findLinkList(Map map);
    int getTotalLinks();
    BlogLink selectByPrimaryKey(Integer linkId);
    boolean deleteByPrimaryKey(Integer linkId);
    int insertBlogLink(BlogLink blogLink);
    BlogLink selectByLinkName(@Param("linkName") String linkName);
    int deleteBatch(Integer[] ids);
    int updateLink(BlogLink blogLink);
}
